<?php
if (!defined('BASEPATH')) exit('No direct script access allowed');
/**
 * Group Object
 */
class GroupObject
{
	private $_id;
	private $_name;
	private $_admin;
	
	function __construct($id = -1, $name = NULL, $admin = 0)
	{
		$this->_id = $id;
		$this->_name = $name;
		$this->_admin = $admin;
	}
	
	public function getId()
	{
		return $this->_id;
	}
	
	public function setId($id)
	{
		$this->_id = $id;
	}
	
	public function getName()
	{
		return quotes_to_entities($this->_name);
	}
	
	public function setName($name)
	{
		$this->_name = $name;
	}
	
	public function isAdmin()
	{
		return ($this->_admin == 1);
	}
	
	public function setAdmin($admin)
	{
		$this->_admin = $admin;
	}
}



?>